#pragma once

#include<rtthread.h>
#include<rtdevice.h>

void add_this_to_dev(rt_device_t dev, void* thisp);

void* get_this_from_dev(rt_device_t dev);

uint16_t get_crc16(uint8_t* ptr, uint8_t len);